<?php
header("content-type:text/html;charset=utf-8");
date_default_timezone_set("PRC");
$con = mysqli_connect("localhost","root","root") or die("数据库连接失败,失败的编号是:".mysqli_errno()."错误信息是:".mysqli_error());
$rst = mysqli_select_db($con,'blog')or die("数据库选择失败");
mysqli_query($con,"set names utf8");
function getContent($content){
    preg_match('/href\s*=\s*(?:"([^"]*)"|\'([^\']*)\'|([^"\'>\s]+))/is',     $content,$matches);
    return @str_replace($matches[0], '', $content);
}